You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > SignalUtils Class > SignalUtils Methods > SignalUtils.FindNearest Method
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
SignalUtils.FindNearest Method

Return the index of the nearest value.

Syntax
C#
Visual Basic
public static int FindNearest([In] TVec Data, double ASample);

Return the index of the value within data where the expression abs(Data[Index]- ASample) is smallest.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!